package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.annatation.TestAnnotation;

@RequestMapping(value = "test")
@RestController
@TestAnnotation
public class TestController {

	private String name = "测试name";
	private String address = "测试address";

	@RequestMapping(value = "index", method = RequestMethod.GET)
	public String index() {
		System.out.println("==========================" + this.getClass().getName());
		return "index";
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
}
